const { http } = uni.$u
// 获取菜单
export const wxLogin = (params, config = {}) => http.post('/api/user/login', params, config)
export const wxLogin1 = (params, config = {}) => http.post('/api/user/login1', params, config)
export const getUserInfo = (params, config = {}) => http.post('/api/user/index', params, config)
export const post = (params, config = {}) => http.post('/api/user/post', params, config)
export const postList = (data) => http.get('/api/user/postlist', data)
export const bindParent = (data) => http.get('/api/user/bindparent', data)
export const complaint = (params, config = {}) => http.post('/api/user/complaint', params, config)
export const userMoneyList = (data) => http.get('/api/user/moneylist', data)
export const vipImg = (data) => http.get('/api/common/vipimg', data)
export const configData = (data) => http.get('/api/common/getconfigdata', data)
// export const getOpenid = (data) => http.get('/api/wechat/getOpenid', data)
export const getUserMobile = (params, config = {}) => http.post('/api/wechat/getUserMobile', params, config)
export const getOpenid = (params, config = {}) => http.post('/api/wechat/getOpenid', params, config)
export const getWxPhoneNumber = (params, config = {}) => http.post('/api/wechat/getWxPhoneNumber', params, config)
export const getQrcode = (params, config = {}) => http.post('/api/share/qrcode', params, config)
export const getarea = (data) => http.get('/api/common/getarea', data)


export const staffInfo = (data) => http.get('/api/staff/info', data)
export const tag = (data) => http.get('/api/common/tag', data)
export const service = (data) => http.get('/api/common/service', data)
export const vip = (data) => http.get('/api/common/vip', data)
export const swiper = (data) => http.get('/api/common/swiper', data)
export const home = (data) => http.get('/api/index/index', data)
export const area = (data) => http.get('/api/common/area', data)
export const getPost = (data) => http.get('/api/common/getpost', data)


export const intentionSubmit = (params, config = {}) => http.post('/api/intention/submit', params, config)
export const intentionUserList = (data) => http.get('/api/intention/userlist', data)
export const intentionList = (data) => http.get('/api/intention/list', data)
export const intentionDetail = (data) => http.get('/api/intention/detail', data)
export const intentionAgree = (data) => http.get('/api/intention/agree', data)
export const intentionApply = (data) => http.get('/api/intention/apply', data)

export const packageList = (data) => http.get('/api/package/list', data)
export const packageDetail = (data) => http.get('/api/package/detail', data)
export const packageSubmit = (data) => http.get('/api/package/submit', data)
export const packageUserList = (data) => http.get('/api/package/userlist', data)
export const packageCheck = (data) => http.get('/api/package/check', data)
export const packageStaffList = (data) => http.get('/api/package/stafflist', data)



export const staffList = (data) => http.get('/api/staff/list', data)
export const staffDetail = (data) => http.get('/api/staff/detail', data)
export const staffCheckState = (data) => http.get('/api/staff/checkstate', data)
export const staffClock= (data) => http.get('/api/staff/clock', data)
export const myStaffList= (data) => http.get('/api/staff/mystafflist', data)
export const staffVipList = (data) => http.get('/api/staff/viplist', data)




export const staffApply = (params, config = {}) => http.post('/api/staff/apply', params, config)

export const messageCount = (data) => http.get('/api/message/readcount', data)

export const messageList = (data) => http.get('/api/message/list', data)

export const messageSet = (data) => http.get('/api/message/setread', data)

//礼物
export const giftList = (data) => http.get('/api/gift/list', data)

export const sendGift = (data) => http.get('/api/gift/send', data)

export const myGiftList= (data) => http.get('/api/gift/mylist', data)

//礼物

export const rechargeList = (data) => http.get('/api/user/rechargelist', data)
export const recharge = (params, config = {}) => http.post('/api/user/recharge', params, config)
export const getvip = (params, config = {}) => http.post('/api/user/getvip', params, config)

export const shareMoneylist = (data) => http.get('/api/share/moneylist', data)
export const shareList = (data) => http.get('/api/share/list', data)
export const shareInit = (data) => http.get('/api/share/index', data)
export const shareApply = (data) => http.get('/api/share/apply', data)
export const shareCreatePoster = (data) => http.get('/api/share/qrcode', data)
export const rechargeSubmit = (params, config = {}) => http.post('/api/user/recharge', params, config)

